package zero.tech.wsnet.data;

import zero.tech.core.data.Resp;

public class Message {
	private String handle;
	private Resp data;
	private Message() {
	}


	public String getHandle() {
		return handle;
	}


	public Message setHandle(String handle) {
		this.handle = handle;
		return this;
	}


	public Resp getData() {
		return data;
	}

	public Message setData(Resp data) {
		this.data = data;
		return this;
	}


	public static Message build(String code,Resp bean) {
		Message out = new Message();
		out.handle=code;
		out.data=bean;
		return out;
	}


	@Override
	public String toString() {
		return "Message [code=" + handle + ", data=" + data + "]";
	}

}
